package com.daxia.ogmall.common;

public enum FactoryCode {
	Factory("Factory","工厂");
	
	private String value;
	private String remark;

	private FactoryCode(String value, String remark) {
		this.value = value;
		this.remark = remark;
	}

	public String getValue() {
		return value;
	}

	public String getRemark() {
		return remark;
	}

	public static FactoryCode getByValue(String value) {
		for (FactoryCode o : FactoryCode.values()) {
			if (o.getValue().equals(value)) {
				return o;
			}
		}
		return null;
	}
}
